package com.bigdata.demo.web.form;


public class ECMLetterSearch {

    private String _all;

    private int id;

    private String receivedfrom;
    private String unit;
    private String documentnumber;
    private String documenttitle;
    private String distributedrecord;

    private String keyword;

    private String orderBy = "id";
    private String orderDirection = "desc";
    private int start = 0;

    private int size = 10;


    private int length;

    public int getSize() {
        if (this.size < 1) {
            return 5;
        } else if (this.size > 100) {
            return 100;
        } else {
            return this.size;
        }
    }

    public void setSize(int size) {
        this.size = size;
    }

    public String get_all() {
        return _all;
    }

    public void set_all(String _all) {
        this._all = _all;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getReceivedfrom() {
        return receivedfrom;
    }

    public void setReceivedfrom(String receivedfrom) {
        this.receivedfrom = receivedfrom;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getDocumentnumber() {
        return documentnumber;
    }

    public void setDocumentnumber(String documentnumber) {
        this.documentnumber = documentnumber;
    }

    public String getDocumenttitle() {
        return documenttitle;
    }

    public void setDocumenttitle(String documenttitle) {
        this.documenttitle = documenttitle;
    }

    public String getDistributedrecord() {
        return distributedrecord;
    }

    public void setDistributedrecord(String distributedrecord) {
        this.distributedrecord = distributedrecord;
    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public String getOrderBy() {
        return orderBy;
    }

    public void setOrderBy(String orderBy) {
        this.orderBy = orderBy;
    }

    public String getOrderDirection() {
        return orderDirection;
    }

    public void setOrderDirection(String orderDirection) {
        this.orderDirection = orderDirection;
    }

    public int getStart() {
        return start;
    }

    public void setStart(int start) {
        this.start = start;
    }

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }
}
